<template>
    <div class="infoBox">
      <div class="infoBox-title">
        <img :src="img" alt="" />
        <span class="infoBox-title-text">{{title}}</span>
      </div>
      <div class="infoBox-content">
        <slot></slot>
      </div>
    </div>
</template>

<script>
  export default {
    name: 'infoBox',
    props: ['img', 'title']
  }
</script>

<style scoped>
  .infoBox {
    width: 100%;
  }

  .infoBox-title {
    width: 100%;
    display: flex;
    align-items: center;
    font-weight: 600;
  }

  .infoBox-title img {
    width: 36rpx;
    height: 36rpx;
  }

  .infoBox-title-text {
    font-size: 32rpx;
    color: rgba(24, 25, 26, 1);
    margin-left: 20rpx;
  }

  .infoBox-content {
    margin-top: 30rpx;
  }
</style>
